package com.itbaiwei.testday01.day01.annotation;

/**
 * Class: Main3
 * Description:
 * Author: haijun.xu
 * Date: 2025/4/24 21:10
 */


interface Shape{
    void draw();
}

enum Color implements Shape{

    RED("红色"),
    BLUE("蓝色"),

    BLACK("黑色");
    private String chineseName;

    Color(String name){
        this.chineseName=name;
    }


    @Override
    public void draw() {

        System.out.println("绘制的颜色是:"+chineseName);
    }
}



public class Main3 {
    public static void main(String[] args) {

        Color red = Color.RED;

        red.draw();


    }


}
